<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>骨架屏</title>
    <style>
        body {
            margin: 0;
        }
        .container {
            min-height: 100vh;
            padding: 24px 20px;
            background: #f8f8f8;
        }
        .box, .box-1 {
            margin-bottom: 20px;
            width: 60vw;
            height: 40px;
            background-color: #ccc;
        }
        .box-2 {
            height: 40px;
            margin-bottom: 20px;
            background-color: #ccc;
        }
        .skeleton {
            background-size: 400% 100%;
            background-image: linear-gradient(90deg,hsla(0,0%,74.5%,.2) 25%,hsla(0,0%,50.6%,.24) 37%,hsla(0,0%,74.5%,.2) 63%);
            animation: skeleton ease 2s infinite;
        }
        @keyframes skeleton {
            50% {
                background-position: 100% 50%;
            }
            100% {
                background-position: 0 50%;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="box-1 skeleton"></div>
        <div class="box-2 skeleton"></div>
        <div class="box"></div>
        <div class="box"></div>
    </div>
</body>
</html>